package com.toolbox.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @date 2023-12-11 13:47
 * @see com.toolbox.req
 */
@Data
@ToString
@Accessors(chain = true)
@ApiModel("用户角色——请求数据")
public class InfraUserRoleReq {

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", position = 100)
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    /**
     * 角色ID集合
     */
    @ApiModelProperty(value = "角色ID集合", position = 100)
    @NotEmpty(message = "角色ID集合不能为空")
    private List<Long> roleIds;

}
